package cn.witsky.cdrService.domain.callEvent;

import java.util.ArrayList;
import java.util.List;

import cn.witsky.cdrService.domain.base.BaseTLV;
import cn.witsky.cdrService.util.TagUtil;

public class CallEvent  extends BaseTLV{
	private List<MoCall> moCallList=null;
	private List<MtCall> mtCallList=null;
	
	public CallEvent(boolean isMoCall) {
		this.setTag(TagUtil.callEvent_tag);
		this.setHasChildTLV(true);
		if(isMoCall) {
			this.moCallList=new ArrayList<MoCall>();
		}else {
			this.mtCallList=new ArrayList<MtCall>();
		}
	}
	public void addMoCall(MoCall moCall) {
		moCallList.add(moCall);
	}
	
	public void addMtCall(MtCall mtCall) {
		mtCallList.add(mtCall);
	}
	
}
